package com.beta.event.order;

import com.beta.event.ShopEvent;

/**
 * Created by vector on 2016/12/7.
 */
public enum OrderEvent implements ShopEvent {

    CREATE("create", "订单创建"),
    CANCEL("cancel", "订单取消"),

    PAYMENT("pay", "订单支付"),
    PAYMENT_SUCCESS("pay_success", "订单支付成功"),

    ASSIGNING("assigning", "分配承运人"),
    PICKING("picking", "订单接单"),
    SHIPPING("shipping", "订单发货"),
    RECEIPT_CONFIRMED("receipt_confirmed", "订单确认收货"),

    COMPLETED("completed", "订单完成"),
    SETTLED("settled", "订单结算完成");
//    SETTLE("settle", "订单结算"),

//    DIVIDE_SUCCESS("divide_success", "结算成功事件"),
//    REFUND_SUCCESS("refund_success", "退款成功事件");

    private final String value;
    private final String description;

    OrderEvent(String value, String description) {
        this.value = value;
        this.description = description;
    }

    public String getValue() {
        return this.value;
    }

    public String getDescription() {
        return this.description;
    }

}
